﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Exam_Entretenimientoh 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Exam_Entretenimientoh : Entity 
	{
		public TB_Exam_Entretenimientoh():base("TB_Exam_Entretenimientoh") {    _EntretenimientohID=Guid.NewGuid().ToString();}

        #region Model
        private string _EntretenimientohID;
        private string _ExamPlaceNO;
        private string _SpecialityKindsNO;
        private int? _ExamLevel;
        private string _ExamScoreTypeID;
        private string _ExamYear;
        /// <summary>
        /// 考务主键ID
        /// </summary>
        public string EntretenimientohID
        {
            get { return _EntretenimientohID; }
            set
            {
                this.OnPropertyValueChange(_.EntretenimientohID, _EntretenimientohID, value);
                this._EntretenimientohID = value;
            }
        }
        /// <summary>
        /// 考点
        /// </summary>
        public string ExamPlaceNO
        {
            get { return _ExamPlaceNO; }
            set
            {
                this.OnPropertyValueChange(_.ExamPlaceNO, _ExamPlaceNO, value);
                this._ExamPlaceNO = value;
            }
        }
        /// <summary>
        /// 专业编码
        /// </summary>
        public string SpecialityKindsNO
        {
            get { return _SpecialityKindsNO; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKindsNO, _SpecialityKindsNO, value);
                this._SpecialityKindsNO = value;
            }
        }
        /// <summary>
        /// 考试级别
        /// </summary>
        public int? ExamLevel
        {
            get { return _ExamLevel; }
            set
            {
                this.OnPropertyValueChange(_.ExamLevel, _ExamLevel, value);
                this._ExamLevel = value;
            }
        }
        /// <summary>
        /// 评分方式
        /// </summary>
        public string ExamScoreTypeID
        {
            get { return _ExamScoreTypeID; }
            set
            {
                this.OnPropertyValueChange(_.ExamScoreTypeID, _ExamScoreTypeID, value);
                this._ExamScoreTypeID = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.EntretenimientohID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.EntretenimientohID,
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.ExamLevel,
				_.ExamScoreTypeID,
				_.ExamYear};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._EntretenimientohID,
				this._ExamPlaceNO,
				this._SpecialityKindsNO,
				this._ExamLevel,
				this._ExamScoreTypeID,
				this._ExamYear};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._EntretenimientohID = DataUtils.ConvertValue<string>(reader["EntretenimientohID"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
            this._ExamLevel = DataUtils.ConvertValue<int?>(reader["ExamLevel"]);
            this._ExamScoreTypeID = DataUtils.ConvertValue<string>(reader["ExamScoreTypeID"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._EntretenimientohID = DataUtils.ConvertValue<string>(row["EntretenimientohID"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
            this._ExamLevel = DataUtils.ConvertValue<int?>(row["ExamLevel"]);
            this._ExamScoreTypeID = DataUtils.ConvertValue<string>(row["ExamScoreTypeID"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Exam_Entretenimientoh");
            /// <summary>
            /// 考务主键ID
            /// </summary>
            public readonly static Field EntretenimientohID = new Field("EntretenimientohID", "TB_Exam_Entretenimientoh", "考务主键ID");
            /// <summary>
            /// 考点
            /// </summary>
            public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO", "TB_Exam_Entretenimientoh", "考点");
            /// <summary>
            /// 专业编码
            /// </summary>
            public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO", "TB_Exam_Entretenimientoh", "专业编码");
            /// <summary>
            /// 考试级别
            /// </summary>
            public readonly static Field ExamLevel = new Field("ExamLevel", "TB_Exam_Entretenimientoh", "考试级别");
            /// <summary>
            /// 评分方式
            /// </summary>
            public readonly static Field ExamScoreTypeID = new Field("ExamScoreTypeID", "TB_Exam_Entretenimientoh", "评分方式");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_Exam_Entretenimientoh", "考试年度");
        }
        #endregion


    }
}

